package com.restful.test;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
@Entity
@Table(name="userinfo")
@XmlRootElement
public class UserInfo {
	@Id
	@Column(name="name")
	private String userName;
	@Column(name="address")
	private String userAddress;
	public UserInfo()
	{
	}
	public UserInfo(String userName, String userAddress){
		this.userAddress = userAddress;
		this.userName = userName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserAddress() {
		return userAddress;
	}
	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}
}
